if (!session?.user)  {
	response.sendRedirect('connect.groovy')
	return
}

html.html {
	head {
		link (rel : 'stylesheet', type : 'text/css', href : "${context.contextPath}/js/ext-2.0/resources/css/ext-all.css")
		script(type : 'text/javascript', src: context.contextPath + '/js/ext-2.0/adapter/ext/ext-base.js', '')
		script(type : 'text/javascript', src: context.contextPath + '/js/ext-2.0/ext-all-debug.js', '')
		script(type : 'text/javascript', src: context.contextPath + '/js/chat/index.js', '')
		script(type : 'text/javascript', """
				var CURRENT_USER = '${session.user.name}'
		""")
	}

	body {

	}
}

